#!/usr/bin/env bash
[ -f $(cd "$(dirname "$0")"; pwd)/config.sh ] || exit 1

. $(cd "$(dirname "$0")"; pwd)/config.sh

! is_singleprocess "$0" && exit 1

##==============================================================================
## $$ Shell本身的PID（ProcessID）
while check_singledemon "$0" $$
do
    $PHP_BIN -f $HOME/index.php MemberImport
    sleep 20m
done
